// 导入组件
import Layout from "./components/layout/index"

// 引入全局样式
import './global.scss'
// 引入antd的公共样式
import 'antd/dist/antd.css'
import { BrowserRouter } from 'react-router-dom'
import Router from "./routers"
import store, { persistor } from './store'
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react'


function App() {
  return (
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
       <BrowserRouter>
           <Router />
       </BrowserRouter>
    </PersistGate>
  </Provider>
  )
}

export default App
